package com.zyh.em.update;

import com.zyh.em.entity.HistoryData;
import com.zyh.em.entity.LoginSuccessData;

public class LastLoginTimeUpdate extends AbstractUpdate{
    @Override
    public void update(LoginSuccessData loginSuccessData, HistoryData historyData, UpdateChain chain) {
        historyData.setLastLoginTime(loginSuccessData.getTime());

        chain.doUpdate(loginSuccessData, historyData);
    }
}